Optimal. Leaf size=361 \[ -\frac {8 b^2 n^2}{9 x}+\frac {32 b^2 d n^2}{3 e \sqrt [3]{x}}+\frac {32 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )}{3 e^{3/2}}+\frac {4 i b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )^2}{e^{3/2}}-\frac {8 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \log \left (2-\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{e^{3/2}}+\frac {4 b n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{3 x}-\frac {4 b d n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e \sqrt [3]{x}}-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e^{3/2}}-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}+\frac {4 i b^2 d^{3/2} n^2 \text {Li}_2\left (-1+\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{e^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.38, antiderivative size = 361, normalized size of antiderivative = 1.00, number
of steps used = 19, number of rules used = 14, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.583, Rules
used = {2508, 2507, 2526, 2505, 269, 331, 211, 2520, 12, 266, 6820, 5044, 4988, 2497}
\begin {gather*} \frac {4 i b^2 d^{3/2} n^2 \text {PolyLog}\left (2,-1+\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{e^{3/2}}-\frac {4 b d^{3/2} n \text {ArcTan}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e^{3/2}}-\frac {4 b d n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e \sqrt [3]{x}}+\frac {4 b n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{3 x}-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}+\frac {4 i b^2 d^{3/2} n^2 \text {ArcTan}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )^2}{e^{3/2}}+\frac {32 b^2 d^{3/2} n^2 \text {ArcTan}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )}{3 e^{3/2}}-\frac {8 b^2 d^{3/2} n^2 \text {ArcTan}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \log \left (2-\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{e^{3/2}}+\frac {32 b^2 d n^2}{3 e \sqrt [3]{x}}-\frac {8 b^2 n^2}{9 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 211
Rule 266
Rule 269
Rule 331
Rule 2497
Rule 2505
Rule 2507
Rule 2508
Rule 2520
Rule 2526
Rule 4988
Rule 5044
Rule 6820
Rubi steps
\begin {align*} \int \frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x^2} \, dx &=3 \text {Subst}\left (\int \frac {\left (a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )\right )^2}{x^4} \, dx,x,\sqrt [3]{x}\right )\\ &=-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}-(4 b e n) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )}{\left (d+\frac {e}{x^2}\right ) x^6} \, dx,x,\sqrt [3]{x}\right )\\ &=-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}-(4 b e n) \text {Subst}\left (\int \left (\frac {a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )}{e x^4}-\frac {d \left (a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )\right )}{e^2 x^2}+\frac {d^2 \left (a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )\right )}{e^2 \left (e+d x^2\right )}\right ) \, dx,x,\sqrt [3]{x}\right )\\ &=-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}-(4 b n) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )}{x^4} \, dx,x,\sqrt [3]{x}\right )+\frac {(4 b d n) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )}{x^2} \, dx,x,\sqrt [3]{x}\right )}{e}-\frac {\left (4 b d^2 n\right ) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )}{e+d x^2} \, dx,x,\sqrt [3]{x}\right )}{e}\\ &=\frac {4 b n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{3 x}-\frac {4 b d n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e \sqrt [3]{x}}-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e^{3/2}}-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}-\left (8 b^2 d n^2\right ) \text {Subst}\left (\int \frac {1}{\left (d+\frac {e}{x^2}\right ) x^4} \, dx,x,\sqrt [3]{x}\right )-\left (8 b^2 d^2 n^2\right ) \text {Subst}\left (\int \frac {\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {e}}\right )}{\sqrt {d} \sqrt {e} \left (d+\frac {e}{x^2}\right ) x^3} \, dx,x,\sqrt [3]{x}\right )+\frac {1}{3} \left (8 b^2 e n^2\right ) \text {Subst}\left (\int \frac {1}{\left (d+\frac {e}{x^2}\right ) x^6} \, dx,x,\sqrt [3]{x}\right )\\ &=\frac {4 b n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{3 x}-\frac {4 b d n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e \sqrt [3]{x}}-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e^{3/2}}-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}-\left (8 b^2 d n^2\right ) \text {Subst}\left (\int \frac {1}{x^2 \left (e+d x^2\right )} \, dx,x,\sqrt [3]{x}\right )-\frac {\left (8 b^2 d^{3/2} n^2\right ) \text {Subst}\left (\int \frac {\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {e}}\right )}{\left (d+\frac {e}{x^2}\right ) x^3} \, dx,x,\sqrt [3]{x}\right )}{\sqrt {e}}+\frac {1}{3} \left (8 b^2 e n^2\right ) \text {Subst}\left (\int \frac {1}{x^4 \left (e+d x^2\right )} \, dx,x,\sqrt [3]{x}\right )\\ &=-\frac {8 b^2 n^2}{9 x}+\frac {8 b^2 d n^2}{e \sqrt [3]{x}}+\frac {4 b n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{3 x}-\frac {4 b d n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e \sqrt [3]{x}}-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e^{3/2}}-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}-\frac {1}{3} \left (8 b^2 d n^2\right ) \text {Subst}\left (\int \frac {1}{x^2 \left (e+d x^2\right )} \, dx,x,\sqrt [3]{x}\right )+\frac {\left (8 b^2 d^2 n^2\right ) \text {Subst}\left (\int \frac {1}{e+d x^2} \, dx,x,\sqrt [3]{x}\right )}{e}-\frac {\left (8 b^2 d^{3/2} n^2\right ) \text {Subst}\left (\int \frac {\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {e}}\right )}{x \left (e+d x^2\right )} \, dx,x,\sqrt [3]{x}\right )}{\sqrt {e}}\\ &=-\frac {8 b^2 n^2}{9 x}+\frac {32 b^2 d n^2}{3 e \sqrt [3]{x}}+\frac {8 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )}{e^{3/2}}+\frac {4 i b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )^2}{e^{3/2}}+\frac {4 b n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{3 x}-\frac {4 b d n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e \sqrt [3]{x}}-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e^{3/2}}-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}-\frac {\left (8 i b^2 d^{3/2} n^2\right ) \text {Subst}\left (\int \frac {\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {e}}\right )}{x \left (i+\frac {\sqrt {d} x}{\sqrt {e}}\right )} \, dx,x,\sqrt [3]{x}\right )}{e^{3/2}}+\frac {\left (8 b^2 d^2 n^2\right ) \text {Subst}\left (\int \frac {1}{e+d x^2} \, dx,x,\sqrt [3]{x}\right )}{3 e}\\ &=-\frac {8 b^2 n^2}{9 x}+\frac {32 b^2 d n^2}{3 e \sqrt [3]{x}}+\frac {32 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )}{3 e^{3/2}}+\frac {4 i b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )^2}{e^{3/2}}-\frac {8 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \log \left (2-\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{e^{3/2}}+\frac {4 b n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{3 x}-\frac {4 b d n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e \sqrt [3]{x}}-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e^{3/2}}-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}+\frac {\left (8 b^2 d^2 n^2\right ) \text {Subst}\left (\int \frac {\log \left (2-\frac {2}{1-\frac {i \sqrt {d} x}{\sqrt {e}}}\right )}{1+\frac {d x^2}{e}} \, dx,x,\sqrt [3]{x}\right )}{e^2}\\ &=-\frac {8 b^2 n^2}{9 x}+\frac {32 b^2 d n^2}{3 e \sqrt [3]{x}}+\frac {32 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )}{3 e^{3/2}}+\frac {4 i b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )^2}{e^{3/2}}-\frac {8 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \log \left (2-\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{e^{3/2}}+\frac {4 b n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{3 x}-\frac {4 b d n \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e \sqrt [3]{x}}-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{e^{3/2}}-\frac {\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2}{x}+\frac {4 i b^2 d^{3/2} n^2 \text {Li}_2\left (-1+\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{e^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.89, size = 598, normalized size = 1.66 \begin {gather*} \frac {-9 \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+\frac {b n \left (72 b d \sqrt {e} n x^{2/3}-72 b d^{3/2} n x \tan ^{-1}\left (\frac {\sqrt {e}}{\sqrt {d} \sqrt [3]{x}}\right )-8 b n \left (\sqrt {e} \left (e-3 d x^{2/3}\right )+3 d^{3/2} x \tan ^{-1}\left (\frac {\sqrt {e}}{\sqrt {d} \sqrt [3]{x}}\right )\right )+12 e^{3/2} \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )-36 d \sqrt {e} x^{2/3} \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )+18 (-d)^{3/2} x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right ) \log \left (\sqrt {e}-\sqrt {-d} \sqrt [3]{x}\right )+18 \sqrt {-d} d x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right ) \log \left (\sqrt {e}+\sqrt {-d} \sqrt [3]{x}\right )+9 b \sqrt {-d} d n x \left (\log \left (\sqrt {e}-\sqrt {-d} \sqrt [3]{x}\right ) \left (\log \left (\sqrt {e}-\sqrt {-d} \sqrt [3]{x}\right )+2 \log \left (\frac {1}{2} \left (1+\frac {\sqrt {-d} \sqrt [3]{x}}{\sqrt {e}}\right )\right )-4 \log \left (\frac {\sqrt {-d} \sqrt [3]{x}}{\sqrt {e}}\right )\right )-4 \text {Li}_2\left (1-\frac {\sqrt {-d} \sqrt [3]{x}}{\sqrt {e}}\right )+2 \text {Li}_2\left (\frac {1}{2}-\frac {\sqrt {-d} \sqrt [3]{x}}{2 \sqrt {e}}\right )\right )+9 b (-d)^{3/2} n x \left (\log \left (\sqrt {e}+\sqrt {-d} \sqrt [3]{x}\right ) \left (\log \left (\sqrt {e}+\sqrt {-d} \sqrt [3]{x}\right )+2 \log \left (\frac {1}{2}-\frac {\sqrt {-d} \sqrt [3]{x}}{2 \sqrt {e}}\right )-4 \log \left (-\frac {\sqrt {-d} \sqrt [3]{x}}{\sqrt {e}}\right )\right )+2 \text {Li}_2\left (\frac {1}{2} \left (1+\frac {\sqrt {-d} \sqrt [3]{x}}{\sqrt {e}}\right )\right )-4 \text {Li}_2\left (1+\frac {\sqrt {-d} \sqrt [3]{x}}{\sqrt {e}}\right )\right )\right )}{e^{3/2}}}{9 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \ln \left (c \left (d +\frac {e}{x^{\frac {2}{3}}}\right )^{n}\right )\right )^{2}}{x^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\ln \left (c\,{\left (d+\frac {e}{x^{2/3}}\right )}^n\right )\right )}^2}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________